package com.java.basis.accessmodifer.p1;

import com.java.basis.accessmodifer.p2.Boy;

/**
 * @author wangning
 * @create 2021-04-22 14:15
 */
public class Girl extends Person {


	public static void main(String[] args) {
		Girl girl = new Girl();
		girl.f();//success
		Boy boy = new Boy();
		boy.f();//success，如果Boy中重写了protected方法，这里就会调用失败
	}
}


